package cn.smbms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.smbms.dao.RoleMapper;
import cn.smbms.pojo.Permission;
import cn.smbms.pojo.Role;
import cn.smbms.service.RoleService;

@Service
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService {
	@Autowired
	RoleMapper roleMapper;

	@Override
	public List<Permission> getPermissionByRoleId(Integer roleid) {
		return roleMapper.getPermissionByRoleId(roleid);
	}

}
